ENV['COCOAPODS_DISABLE_STATS'] = 'true'

deployment_target = '12.0'
platform :ios, deployment_target
inhibit_all_warnings!

project 'TrustWalletCore.xcodeproj'

target 'WalletCore' do
  use_frameworks!

  pod 'SwiftProtobuf'

  target 'WalletCoreTests'
end

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
    config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = 'NO'
  end

  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      # remove deployment_target from target level
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
    end
  end
end
